package com.weijian.advisor;

import org.springframework.ai.chat.client.advisor.MessageChatMemoryAdvisor;
import org.springframework.ai.chat.memory.ChatMemory;

/**
 * 管理聊天对话的上下文记忆，并设置最大记忆长度
 */
public class ChatMessageAdvisor extends MessageChatMemoryAdvisor {

    public ChatMessageAdvisor(ChatMemory chatMemory, String conversationId) {
        // TODO 这里后续可以测试一下，暂时设置最大长度10000
        super(chatMemory, conversationId, 4000);
    }
}